var MerchantModel = require('../models').Merchant;

module.exports = {
    updateBlockStateByMerchantId:updateBlockStateByMerchantId,
}

function updateBlockStateByMerchantId(merchant_id,block ,callback) {
    MerchantModel.update({merchant_id: merchant_id},{$set:{block:block}}, callback);
}


